<template>

  <div class="banner-container">
    <el-image
        src="/breed/introduction_background.jpg"
        alt="平台介绍背景图"
        class="banner-image"
    />
  </div>

  <el-card class="custom-card">
    <!-- 卡片顶部区域 -->
    <div class="flex flex-col">

      <!-- 大标题 -->
      <h1 class="contact-title">
        联系我们
      </h1>

      <div class="custom-double-divider">
        <el-divider class="title-divider" />
      </div>

      <!-- 联系信息表格布局 -->
      <div class="contact-info">
        <div class="info-row">
          <span class="info-label">单位名称：</span>
          <span class="info-content"></span>
        </div>

        <div class="info-row">
          <span class="info-label">地址：</span>
          <span class="info-content"></span>
        </div>

        <div class="info-row">
          <span class="info-label">邮编：</span>
          <span class="info-content"></span>
        </div>

        <div class="info-row">
          <span class="info-label">电话：</span>
          <span class="info-content"></span>
        </div>

        <div class="info-row">
          <span class="info-label">联系人：</span>
          <span class="info-content"></span>
        </div>

        <div class="info-row">
          <span class="info-label">邮箱：</span>
          <span class="info-content"></span>
        </div>
      </div>

      <!-- 微信公众号 -->
      <div class="wechat-section">
        <h2 class="wechat-title">微信公众号：</h2>
        <div class="wechat-image-container">
<!--          <el-image-->
<!--              src="/microbe/wechat_image1.png"-->
<!--              alt="微信公众号二维码"-->
<!--              class="wechat-image"-->
<!--          />-->
        </div>
      </div>

      <!-- 团队公众号 -->
      <div class="wechat-section">
        <h2 class="wechat-title">团队公众号：</h2>
        <div class="wechat-image-container">
<!--          <el-image-->
<!--              src="/microbe/wechat_image2.png"-->
<!--              alt="团队公众号二维码"-->
<!--              class="wechat-image"-->
<!--          />-->
        </div>
      </div>
    </div>
  </el-card>
</template>

<script setup>
import { ref } from 'vue'
</script>

<style scoped>
/* 自定义卡片样式 */
.custom-card {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  max-width: 800px;
  margin: 0 auto;
}

.custom-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.banner-container {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.banner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 标题样式 */
.contact-title {
  font-size: 35px;
  font-weight: bold;
  color: #333;
  text-align: start;
  margin-bottom: 3rem;
}

/* 联系信息样式 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
}

.info-label {
  font-weight: 600;
  color: #333;
  min-width: 80px;
  display: flex;
  align-items: flex-start;
}

.info-content {
  color: #555;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

/* 微信公众号样式 */
.wechat-section {
  margin-top: 1rem;

}

.wechat-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-start;

}

.wechat-image-container {
  display: flex;
  justify-content: flex-start;
}

.wechat-image {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .custom-card {
    padding: 1.5rem;
  }

  .contact-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
  }

  .info-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-label {
    min-width: auto;
  }

  .wechat-image {
    width: 10rem;
    height: 10rem;
  }
}

.custom-double-divider {
  display: flex; /* 启用 Flex 布局 */
  width: 100%;  /* 确保占满父容器 */
  margin-bottom: 20px;
}

.title-divider {
  position: relative;
  border: none; /* 隐藏默认分隔线 */
  margin: 0;    /* 清除默认边距 */
  height: 1px;  /* 控制伪元素高度 */
}

/* 左侧 30% 的分隔线（绿色） */
.title-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  height:4px; /* 粗细 */
  background: #13675b; /* 颜色 */
}

/* 右侧 70% 的分隔线（灰色） */
.title-divider::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 80%;
  height: 1px; /* 粗细 */
  background: #e5e7eb; /* 颜色 */
}

</style>